//
//  SimpleLabel.m
//  UI02_UILabel_UITextField_UIImageView_UIButton
//
//  Created by Scott on 16/5/4.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "SimpleLabel.h"

@implementation SimpleLabel

#pragma mark - Creating and Init
+ (instancetype)simpleLabelWithFrame:(CGRect)frame title:(NSString *)title {
    
    SimpleLabel *label = [[SimpleLabel alloc] initWithFrame:frame];
    
    label.text = title;
    label.textAlignment = NSTextAlignmentRight;
    
    return [label autorelease];
}

+ (instancetype)simpleLabelWithFrame:(CGRect)frame title:(NSString *)title superView:(UIView *)superView {
    
   SimpleLabel *lebel = [SimpleLabel simpleLabelWithFrame:frame title:title];
    
    [superView addSubview:lebel];
    
    return lebel;
}

@end
